/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.collect.ListUtils;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 测试数据Entity
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name = "zt_color", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "编号", isPK = true),
		@Column(name = "title", attrName = "title", label = "颜色规格"),
		@Column(name = "sku", attrName = "sku", label = "颜色规格"),
		@Column(name = "erpid", attrName = "erpid", label = "颜色规格"),
		@Column(name = "pname", attrName = "pname", label = "颜色规格"),
		@Column(name = "quence", attrName = "quence", label = "顺序"),
		@Column(name = "orig_price", attrName = "origPrice", label = "颜色规格"),
		@Column(name = "num_count", attrName = "numCount", label = "库存数量"),
		@Column(name = "sold_count", attrName = "soldCount", label = "销售数量"),
		@Column(name = "status", attrName = "status", label = "状态"),
		@Column(name = "img", attrName = "img", label = "颜色"),
		@Column(name = "goodsid", attrName = "ztGoods.id", label = "物品id值"),
		@Column(name = "create_date", attrName = "createDate", label = "创建时间"), }, orderBy = "a.create_date DESC")
public class ZtColor extends DataEntity<ZtColor> {

	private static final long serialVersionUID = 1L;
	private Double origPrice;
	private Integer numCount;//数量
	private String status;
	private Integer soldCount;//售出的数量
	private Integer quence;
	private String title;
	private ZtGoods ztGoods;
	private String erpid;
	private String ztGoodsid;

	private String img;
	
	private String pname,sku;
	
	private List<ZtSpecifications> ztSpecificationsList = ListUtils.newArrayList();
	
	public Integer getQuence() {
		return quence;
	}

	public void setQuence(Integer quence) {
		this.quence = quence;
	}

	public Double getOrigPrice() {
		return origPrice;
	}

	public void setOrigPrice(Double origPrice) {
		this.origPrice = origPrice;
	}

	public String getErpid() {
		return erpid;
	}

	public void setErpid(String erpid) {
		this.erpid = erpid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public List<ZtSpecifications> getZtSpecificationsList() {
		return ztSpecificationsList;
	}

	public void setZtSpecificationsList(List<ZtSpecifications> ztSpecificationsList) {
		this.ztSpecificationsList = ztSpecificationsList;
	}

	public Integer getSoldCount() {
		return soldCount;
	}

	public void setSoldCount(Integer soldCount) {
		this.soldCount = soldCount;
	}

	public String getZtGoodsid() {
		return ztGoodsid;
	}

	public void setZtGoodsid(String ztGoodsid) {
		this.ztGoodsid = ztGoodsid;
	}

	@JsonIgnore
	private Date createDate;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private Date updateDate;

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getNumCount() {
		return numCount;
	}

	public void setNumCount(Integer numCount) {
		this.numCount = numCount;
	}

	@JsonIgnore
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public ZtGoods getZtGoods() {
		return ztGoods;
	}

	public void setZtGoods(ZtGoods ztGoods) {
		this.ztGoods = ztGoods;
	}

}